package com.xhs.utils;


import com.xhs.config.SystemConfig;
import com.xhs.vo.R;

/**
 * @Auther: admin
 * @Date: 2021-10-15
 */
public class RUtils {
    public static R ok(String msg, Object data){
        return new R(SystemConfig.R_OK,msg,data);
    }
    public static R ok(Object data){
        return ok("OK",data);
    }
    public static R fail(String msg){
        return new R(SystemConfig.R_FAIL,msg,null);
    }
    public static R fail(){
        return new R(SystemConfig.R_FAIL,"亲，操作失败！",null);
    }
}
